package com.meituan.sdk.model.ddzhkh.dingdan.orderReserveorderquery;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 上门预约订单信息查询
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/dingdan/reserveorderquery",
    businessId = 59,
    apiVersion = "10000",
    apiName = "order_reserveorderquery",
    needAuth = true
)
public class OrderReserveorderqueryRequest implements MeituanRequest<OrderReserveorderqueryResponse> {
    /**
    * <p data-diff-id="ct-diff-id-176de0db-b4ff-4e38-8e26-0d58e24151d8"><span style="color: rgb(31, 45, 61)">预约单id列表</span></p>
    */
    @NotEmpty(message = "orderIds不能为空")
    @SerializedName("orderIds")
    private List<Long> orderIds;

    public List<Long> getOrderIds() {
        return orderIds;
    }
    public void setOrderIds(List<Long> orderIds) {
        this.orderIds = orderIds;
    }


    @Override
    public MeituanResponse<OrderReserveorderqueryResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<OrderReserveorderqueryResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "OrderReserveorderqueryRequest{" + "orderIds=" + orderIds + "}";
    }
}
